package com.winit.indexing.model;

import org.springframework.data.cassandra.mapping.Column;
import org.springframework.data.cassandra.mapping.PrimaryKey;
import org.springframework.data.cassandra.mapping.Table;

import java.io.Serializable;
import java.util.Map;

@Table("matrix_indexing")
public class Indexing implements Serializable {
    @PrimaryKey
    private IndexingId id;
    // 符合条件的记录信息  map里的内容为 key:plan_id  value(快照信息,展示用):plan_name
    @Column("index_map")
    private Map<String, String> indexMap;

    public Indexing(){

    }

    public Indexing(IndexingId id, Map<String, String> indexMap){
        this.id = id;
        this.indexMap = indexMap;
    }

    public IndexingId getId() {
        return id;
    }

    public void setId(IndexingId id) {
        this.id = id;
    }

    public Map<String, String> getIndexMap() {
        return indexMap;
    }

    public void setIndexMap(Map<String, String> indexMap) {
        this.indexMap = indexMap;
    }
}
